<!--
 * @Descripttion: 
 * @version: V1.0.0.1
 * @Author: daiyiru
 * @Date: 2023-02-22 22:46:55
 * @LastEditors: daiyiru
 * @LastEditTime: 2023-02-23 15:38:02
-->
<template>
  <div class="padding20">
    <p class="overview-title titleInfo" style="text-align: center">
      本平台提供开放式的实验环境，支持用户开展网络威胁分析的探索实验。
    </p>
    <div class="overview-card">
      <div class="card-container">
        <div class="card-item bg-white">
          <img :src="require('./image/1.png')" alt="" />
          <div>
            <p class="big-number">2</p>
            已完成的实验
          </div>
        </div>
        <div class="card-item bg-white">
          <img :src="require('./image/2.png')" alt="" />
          <div>
            <p class="big-number">0</p>
            正在进行中的实验
          </div>
        </div>
      </div>
      <div class="tuopu">
        <img :src="require('./mock/tuopu2.png')" alt="" />
      </div>
    </div>
    <table-list :list="doneList" :page-info="donePageInfo"></table-list>
  </div>
</template>

<script>
import tableList from "./components/tableList";
import getData from "./mock/getData";
export default {
  name: "overviewIndex",
  data() {
    return {
      activeName: "done",
      doneList: getData.getListData(),
      donePageInfo: {
        current: 1,
        size: 10,
        total: getData.getListData().length,
      },
    };
  },
  components: {
    tableList,
  },
};
</script>

<style scoped lang="less">
.bg-white {
  background: white;
}
.overview-card {
  height: 600px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.card-container {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  .card-item {
    /*border: 1px solid #e4e4e4;*/
    border-radius: 4px;
    height: 290px;
    width: 400px;
    padding: 10px;
    display: flex;
    align-items: center;
    text-align: center;
  }
}
.tuopu {
  padding-left: 20px;
  img {
    height: 100%;
    object-fit: contain;
  }
}
.big-number {
  font-size: 28px;
  text-align: center;
}
</style>
